<?php
class answer extends CActiveRecord
{
	public static function model($className=__CLASS__)
	{
		return parent::model($className);
	}
	
	public function tableName()
	{
		return 'answer';
	}
	public function relations()
	{
		return array(
		'question'=>array(self::BELONGS_TO,'question','question_id'),
		'User'=>array(self::BELONGS_TO,'User','user_id'),
		);
	}
	
}